<?php

namespace App\Console\Commands\OpenShop;

use App\Console\Commands\Traits\ExcelCommandTrait;
use App\Service\OpenShop\Import\OpenFull\OpenFullToCollection;
use Illuminate\Console\Command;

class ImportOpenFull extends Command
{
    use ExcelCommandTrait;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'openShop:import-open-full';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '导入开店历史全量数据';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $defaultUrl = 'https://file.51kuafu.com/91/b6/5f6dd7dee1e66cced592e44ddb7c100509ce47a703e88351fd2c74938570.xlsx';

        $this->excelImport(OpenFullToCollection::class, $defaultUrl);
    }
}


